import hyRequest from '..'

export function getUserListRequest(queryInfo) {
  return hyRequest.get({
    url: `api/user`,
    params: queryInfo,
  })
}
export function delUserByIdRequest(ids) {
  return hyRequest.delete({
    url: `api/user`,
    data: { ids: ids },
  })
}

export function getUserInifoByIdRequest(id) {
  return hyRequest.delete({
    url: `api/user/${id}`,
  })
}

export function expUserListRequest(queryInfo) {
  return hyRequest.post({
    url: `api/user/exp`,
    data: queryInfo,
  })
}

export function expDowUserListRequest(queryInfo) {
  return hyRequest.post({
    url: `api/user/expDow`,
    data: queryInfo,
  })
}

export function uploadUserListRequest(formData) {
  return hyRequest.post({
    url: `api/pub/imp-any`,
    headers: { 'Content-Type': 'multipart / form - data' },
    data: formData,
  })
}
